#!/bin/bash
(echo "123123";sleep 1;echo "123123") |sudo passwd root > /dev/null
sudo sed -i '$a greeter-show-manual-login=true'  /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
sudo sed -i '3s/^/#/' /etc/pam.d/gdm-autologin
sudo sed -i '3s/^/#/' /etc/pam.d/gdm-password
sudo su - root <<EOF
pwd;
exit;
EOF
sudo sed -i '$d' /root/.profile
sudo sed -i '$atty -s && mesg n || true' /root/.profile
#安装必备
echo y |sudo apt-get install vim
sudo apt install net-tools
sudo apt-get install openssh-server -y
sudo service ssh start

